<?php
defined( '_JEXEC' ) or die;

jimport('joomla.application.component.controller');

class PricerUpdaterController extends JController{

	protected $default_view = 'robots';

	function display($cachable = false, $urlparams = false) {

	require_once JPATH_COMPONENT.'/helpers/pricerupdater.php';

		// Load the submenu.
		PricerUpdaterHelper::addSubmenu(JRequest::getCmd('view', 'robots'));

		$view = JRequest::getCmd('view', 'robots');
//		$layout = JRequest::getCmd('layout', 'articles');
		$id = JRequest::getInt('id');

		// Set default view if not set
		JRequest::setVar('view', JRequest::getCmd('view', 'Robots'));

		parent::display();

		return $this;
	}
}
